﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using DADAL;

namespace DABLL
{
    public class TestRecord
    {
        /// <summary> 添加试压数据
        /// 
        /// </summary>
        /// <param name="obj"></param>
        public static Response Add(TestRecordModel obj)
        {
            Response response = Response.DefaultResponse();
            List<TestRecordModel> list = new List<TestRecordModel>();
            list.Add(obj);
            int result = SqlSugarHelper.Insertable(list);
            if (result > 0)
            {
                response.Code = 200;
                response.Msg = string.Format("添加成功");
            }
            else
            {
                response.Msg = string.Format("设备失败");
            }
            return response;
        }
    }
}
